<template>
	<view class="p30 border-box">
		<u-parse :content="formatRich(rich)"></u-parse>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	import {
		formatRich
	} from '@/core/app';
	import {
		getArticle
	} from '../../api/article';
	import {
		onLoad
	} from "@dcloudio/uni-app"

	/* 富文本 */
	const rich = ref("");

	function getRich() {
		getArticle({
			code: 'deposit_guarantee'
		}).then(res => {
			if (res.code === 200) {
				rich.value = res.data.content;
			}
		})
	}

	onLoad(() => {
		getRich();
	})
</script>

<style scoped lang="scss">

</style>